<?php namespace Admin\Model;
use Hdphp\Model\Model;
//后台订单 模型
class Orders extends Model{
//	指定表名
	protected $table = 'orders';
	public function store(){
		$oid = Q('post.oid',0,'intval');
		$data = array(
			'courier_name' =>$_POST['courier_name'],
			'courier_num' =>$_POST['courier_num'],
			'status' =>$_POST['status'],
			'remark' =>$_POST['remark'],
		);
		$this->where("oid={$oid}")->save($data);
		return true;
	}
}





 ?>